mirror of
				https://github.com/bspeice/itcs4180
				synced 2025-11-03 18:00:37 -05:00 
			
		
		
		
	DetailedTweetActivity is now working correctly
Still needs some alignment, etc.
This commit is contained in:
		
							
								
								
									
										60
									
								
								HW5/res/layout/activity_detailed_tweet.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										60
									
								
								HW5/res/layout/activity_detailed_tweet.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,60 @@
 | 
			
		||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
 | 
			
		||||
    xmlns:tools="http://schemas.android.com/tools"
 | 
			
		||||
    android:layout_width="match_parent"
 | 
			
		||||
    android:layout_height="match_parent"
 | 
			
		||||
    android:paddingBottom="@dimen/activity_vertical_margin"
 | 
			
		||||
    android:paddingLeft="@dimen/activity_horizontal_margin"
 | 
			
		||||
    android:paddingRight="@dimen/activity_horizontal_margin"
 | 
			
		||||
    android:paddingTop="@dimen/activity_vertical_margin"
 | 
			
		||||
    tools:context=".DetailedTweetActivity" >
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/txtDetailUsername"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_alignParentTop="true"
 | 
			
		||||
        android:layout_centerHorizontal="true"
 | 
			
		||||
        android:text="TextView" />
 | 
			
		||||
 | 
			
		||||
    <ImageView
 | 
			
		||||
        android:id="@+id/imgDetailBackground"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_below="@+id/txtDetailUsername"
 | 
			
		||||
        android:layout_centerHorizontal="true" />
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/txtDetailTweet"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_alignLeft="@+id/txtDetailUsername"
 | 
			
		||||
        android:layout_below="@+id/imgDetailBackground"
 | 
			
		||||
        android:text="TextView" />
 | 
			
		||||
 | 
			
		||||
    <Button
 | 
			
		||||
        android:id="@+id/btnDetailBack"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_alignParentBottom="true"
 | 
			
		||||
        android:layout_alignParentLeft="true"
 | 
			
		||||
        android:layout_alignParentRight="true"
 | 
			
		||||
        android:onClick="onClickBack"
 | 
			
		||||
        android:text="Button" />
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/txtFavoritesCount"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_alignRight="@+id/txtDetailTweet"
 | 
			
		||||
        android:layout_below="@+id/txtDetailTweet"
 | 
			
		||||
        android:text="TextView" />
 | 
			
		||||
 | 
			
		||||
    <TextView
 | 
			
		||||
        android:id="@+id/txtRetweetCount"
 | 
			
		||||
        android:layout_width="wrap_content"
 | 
			
		||||
        android:layout_height="wrap_content"
 | 
			
		||||
        android:layout_alignLeft="@+id/txtFavoritesCount"
 | 
			
		||||
        android:layout_below="@+id/txtFavoritesCount"
 | 
			
		||||
        android:text="TextView" />
 | 
			
		||||
 | 
			
		||||
</RelativeLayout>
 | 
			
		||||
@ -3,6 +3,7 @@
 | 
			
		||||
    android:id="@+id/RelativeLayout1"
 | 
			
		||||
    android:layout_width="fill_parent"
 | 
			
		||||
    android:layout_height="fill_parent"
 | 
			
		||||
    android:descendantFocusability="blocksDescendants"
 | 
			
		||||
    android:padding="2dp" >
 | 
			
		||||
 | 
			
		||||
    <ImageView
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										9
									
								
								HW5/res/menu/detailed_tweet.xml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								HW5/res/menu/detailed_tweet.xml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
 | 
			
		||||
 | 
			
		||||
    <item
 | 
			
		||||
        android:id="@+id/action_settings"
 | 
			
		||||
        android:orderInCategory="100"
 | 
			
		||||
        android:showAsAction="never"
 | 
			
		||||
        android:title="@string/action_settings"/>
 | 
			
		||||
 | 
			
		||||
</menu>
 | 
			
		||||
@ -5,5 +5,6 @@
 | 
			
		||||
    <string name="action_settings">Settings</string>
 | 
			
		||||
    <string name="hello_world">Hello world!</string>
 | 
			
		||||
    <string name="title_activity_tweets_list">TweetsListActivity</string>
 | 
			
		||||
    <string name="title_activity_detailed_tweet">DetailedTweetActivity</string>
 | 
			
		||||
 | 
			
		||||
</resources>
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user