File tree Expand file tree Collapse file tree
java/at/blogc/android/activities
expandabletextview/src/main/java/at/blogc/android/views Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 See the License for the specific language governing permissions and
1414 limitations under the License.
1515-->
16- <manifest package =" at.blogc.android.views"
17- xmlns : android =" http://schemas.android.com/apk/res/android" >
16+ <manifest
17+ xmlns : tools =" http://schemas.android.com/tools"
18+ package =" at.blogc.android.views"
19+ xmlns : android =" http://schemas.android.com/apk/res/android" >
1820
1921 <application
2022 android : allowBackup =" true"
2123 android : icon =" @mipmap/ic_launcher"
2224 android : label =" @string/app_name"
2325 android : supportsRtl =" true"
24- android : theme =" @style/AppTheme" >
26+ android : theme =" @style/AppTheme"
27+ tools : ignore =" AllowBackup" >
28+
2529 <activity android : name =" at.blogc.android.activities.MainActivity" >
30+
2631 <intent-filter >
2732 <action android : name =" android.intent.action.MAIN" />
28-
2933 <category android : name =" android.intent.category.LAUNCHER" />
3034 </intent-filter >
35+
3136 </activity >
37+
3238 </application >
3339
3440</manifest >
Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ public class MainActivity extends AppCompatActivity
2929{
3030 private static final String TAG = "ExpandableTextView" ;
3131
32+ @ SuppressWarnings ("ConstantConditions" )
3233 @ Override
33- protected void onCreate (Bundle savedInstanceState )
34+ protected void onCreate (final Bundle savedInstanceState )
3435 {
3536 super .onCreate (savedInstanceState );
3637 this .setContentView (R .layout .activity_main );
@@ -51,6 +52,7 @@ protected void onCreate(Bundle savedInstanceState)
5152 // toggle the ExpandableTextView
5253 buttonToggle .setOnClickListener (new View .OnClickListener ()
5354 {
55+ @ SuppressWarnings ("ConstantConditions" )
5456 @ Override
5557 public void onClick (final View v )
5658 {
Original file line number Diff line number Diff line change @@ -49,17 +49,17 @@ public class ExpandableTextView extends TextView
4949 private boolean expanded ;
5050 private int originalHeight ;
5151
52- public ExpandableTextView (Context context )
52+ public ExpandableTextView (final Context context )
5353 {
5454 this (context , null );
5555 }
5656
57- public ExpandableTextView (Context context , AttributeSet attrs )
57+ public ExpandableTextView (final Context context , final AttributeSet attrs )
5858 {
5959 this (context , attrs , 0 );
6060 }
6161
62- public ExpandableTextView (Context context , AttributeSet attrs , int defStyle )
62+ public ExpandableTextView (final Context context , final AttributeSet attrs , final int defStyle )
6363 {
6464 super (context , attrs , defStyle );
6565
You can’t perform that action at this time.
0 commit comments