Skip to content

Commit

Permalink
Category browser image, gallery tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
alga committed Nov 12, 2011
1 parent edf08aa commit 7d871da
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 16 deletions.
13 changes: 9 additions & 4 deletions AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,23 @@

</activity>
<activity android:name="Antras"
android:label="@string/antras_name">
android:screenOrientation="portrait"
android:label="@string/antras_name"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="Trecias"
android:label="@string/trecias_name"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar">

<intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<uses-permission android:name="android.permission.INTERNET" />
</manifest>
</manifest>
2 changes: 1 addition & 1 deletion default.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Project target.
target=android-9
target=android-10
Binary file added res/drawable-hdpi/greeting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 22 additions & 9 deletions res/layout/antras.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,30 @@
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView
<TextView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="4"
android:src="@drawable/placeholder"
></ImageView>
<lt.appcamp.appcamp16.ui.CoverFlow
android:layout_height="100dp"
android:text="Pick category"
android:textSize="20dp"
/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:id="@+id/category_gallery"
/>
android:background="@drawable/greeting"
android:orientation="vertical"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
></LinearLayout>
<!--<lt.appcamp.appcamp16.ui.CoverFlow -->
<Gallery
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/category_gallery"
android:layout_weight="3"
/>
</LinearLayout>
</LinearLayout>

4 changes: 2 additions & 2 deletions src/lt/appcamp/appcamp16/Antras.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public void onCreate(Bundle savedInstanceState)
super.onCreate(savedInstanceState);
setContentView(R.layout.antras);

CoverFlow gal = (CoverFlow) findViewById(
R.id.category_gallery);
//CoverFlow gal = (CoverFlow) findViewById(R.id.category_gallery);
Gallery gal = (Gallery) findViewById(R.id.category_gallery);
gal.setAdapter(new ImageAdapter(this));

}
Expand Down

0 comments on commit 7d871da

Please sign in to comment.