diff options
author | Renard | 2016-04-05 01:52:13 -0300 |
---|---|---|
committer | Renard | 2016-04-05 01:52:13 -0300 |
commit | 90ca8b34d823eed19d26f6611716ca231d60424c (patch) | |
tree | 65d389b05acb542f14a8faba8abeaa7b36ae227e /app/src/main/res | |
download | BaiApp-90ca8b34d823eed19d26f6611716ca231d60424c.tar.gz BaiApp-90ca8b34d823eed19d26f6611716ca231d60424c.tar.xz BaiApp-90ca8b34d823eed19d26f6611716ca231d60424c.zip |
Initial commit
Diffstat (limited to 'app/src/main/res')
67 files changed, 957 insertions, 0 deletions
diff --git a/app/src/main/res/drawable-hdpi/ic_action_download.png b/app/src/main/res/drawable-hdpi/ic_action_download.png Binary files differnew file mode 100644 index 0000000..f08b335 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_action_download.png diff --git a/app/src/main/res/drawable-hdpi/ic_action_font_bold.png b/app/src/main/res/drawable-hdpi/ic_action_font_bold.png Binary files differnew file mode 100644 index 0000000..480e2fb --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_action_font_bold.png diff --git a/app/src/main/res/drawable-hdpi/ic_action_font_italic.png b/app/src/main/res/drawable-hdpi/ic_action_font_italic.png Binary files differnew file mode 100644 index 0000000..0405024 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_action_font_italic.png diff --git a/app/src/main/res/drawable-hdpi/ic_edit.png b/app/src/main/res/drawable-hdpi/ic_edit.png Binary files differnew file mode 100644 index 0000000..29046d9 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_edit.png diff --git a/app/src/main/res/drawable-hdpi/ic_refresh.png b/app/src/main/res/drawable-hdpi/ic_refresh.png Binary files differnew file mode 100644 index 0000000..455000e --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_refresh.png diff --git a/app/src/main/res/drawable-hdpi/ic_sync.png b/app/src/main/res/drawable-hdpi/ic_sync.png Binary files differnew file mode 100644 index 0000000..4840445 --- /dev/null +++ b/app/src/main/res/drawable-hdpi/ic_sync.png diff --git a/app/src/main/res/drawable-mdpi/ic_action_download.png b/app/src/main/res/drawable-mdpi/ic_action_download.png Binary files differnew file mode 100644 index 0000000..76e1c9b --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_action_download.png diff --git a/app/src/main/res/drawable-mdpi/ic_action_font_bold.png b/app/src/main/res/drawable-mdpi/ic_action_font_bold.png Binary files differnew file mode 100644 index 0000000..66242fc --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_action_font_bold.png diff --git a/app/src/main/res/drawable-mdpi/ic_action_font_italic.png b/app/src/main/res/drawable-mdpi/ic_action_font_italic.png Binary files differnew file mode 100644 index 0000000..19868a5 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_action_font_italic.png diff --git a/app/src/main/res/drawable-mdpi/ic_addreply.png b/app/src/main/res/drawable-mdpi/ic_addreply.png Binary files differnew file mode 100644 index 0000000..cacba05 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_addreply.png diff --git a/app/src/main/res/drawable-mdpi/ic_edit.png b/app/src/main/res/drawable-mdpi/ic_edit.png Binary files differnew file mode 100644 index 0000000..559aac9 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_edit.png diff --git a/app/src/main/res/drawable-mdpi/ic_refresh.png b/app/src/main/res/drawable-mdpi/ic_refresh.png Binary files differnew file mode 100644 index 0000000..765ed43 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_refresh.png diff --git a/app/src/main/res/drawable-mdpi/ic_sync.png b/app/src/main/res/drawable-mdpi/ic_sync.png Binary files differnew file mode 100644 index 0000000..ecdd7f1 --- /dev/null +++ b/app/src/main/res/drawable-mdpi/ic_sync.png diff --git a/app/src/main/res/drawable-xhdpi/ic_action_download.png b/app/src/main/res/drawable-xhdpi/ic_action_download.png Binary files differnew file mode 100644 index 0000000..46501ca --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_action_download.png diff --git a/app/src/main/res/drawable-xhdpi/ic_action_font_bold.png b/app/src/main/res/drawable-xhdpi/ic_action_font_bold.png Binary files differnew file mode 100644 index 0000000..bec0285 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_action_font_bold.png diff --git a/app/src/main/res/drawable-xhdpi/ic_action_font_italic.png b/app/src/main/res/drawable-xhdpi/ic_action_font_italic.png Binary files differnew file mode 100644 index 0000000..1959c9f --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_action_font_italic.png diff --git a/app/src/main/res/drawable-xhdpi/ic_edit.png b/app/src/main/res/drawable-xhdpi/ic_edit.png Binary files differnew file mode 100644 index 0000000..daa50e6 --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_edit.png diff --git a/app/src/main/res/drawable-xhdpi/ic_refresh.png b/app/src/main/res/drawable-xhdpi/ic_refresh.png Binary files differnew file mode 100644 index 0000000..58b116e --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_refresh.png diff --git a/app/src/main/res/drawable-xhdpi/ic_sync.png b/app/src/main/res/drawable-xhdpi/ic_sync.png Binary files differnew file mode 100644 index 0000000..3b8bbbc --- /dev/null +++ b/app/src/main/res/drawable-xhdpi/ic_sync.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_download.png b/app/src/main/res/drawable-xxhdpi/ic_action_download.png Binary files differnew file mode 100644 index 0000000..80a2365 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_action_download.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_font_bold.png b/app/src/main/res/drawable-xxhdpi/ic_action_font_bold.png Binary files differnew file mode 100644 index 0000000..c5428d6 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_action_font_bold.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_action_font_italic.png b/app/src/main/res/drawable-xxhdpi/ic_action_font_italic.png Binary files differnew file mode 100644 index 0000000..8c04ef7 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_action_font_italic.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_edit.png b/app/src/main/res/drawable-xxhdpi/ic_edit.png Binary files differnew file mode 100644 index 0000000..e36a9c2 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_edit.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_refresh.png b/app/src/main/res/drawable-xxhdpi/ic_refresh.png Binary files differnew file mode 100644 index 0000000..98cdb9c --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_refresh.png diff --git a/app/src/main/res/drawable-xxhdpi/ic_sync.png b/app/src/main/res/drawable-xxhdpi/ic_sync.png Binary files differnew file mode 100644 index 0000000..08f7a61 --- /dev/null +++ b/app/src/main/res/drawable-xxhdpi/ic_sync.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_download.png b/app/src/main/res/drawable-xxxhdpi/ic_action_download.png Binary files differnew file mode 100644 index 0000000..a017260 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_action_download.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_font_bold.png b/app/src/main/res/drawable-xxxhdpi/ic_action_font_bold.png Binary files differnew file mode 100644 index 0000000..c0da59e --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_action_font_bold.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_action_font_italic.png b/app/src/main/res/drawable-xxxhdpi/ic_action_font_italic.png Binary files differnew file mode 100644 index 0000000..e756a29 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_action_font_italic.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_edit.png b/app/src/main/res/drawable-xxxhdpi/ic_edit.png Binary files differnew file mode 100644 index 0000000..c7fa470 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_edit.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_refresh.png b/app/src/main/res/drawable-xxxhdpi/ic_refresh.png Binary files differnew file mode 100644 index 0000000..02e21a8 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_refresh.png diff --git a/app/src/main/res/drawable-xxxhdpi/ic_sync.png b/app/src/main/res/drawable-xxxhdpi/ic_sync.png Binary files differnew file mode 100644 index 0000000..0bf53c6 --- /dev/null +++ b/app/src/main/res/drawable-xxxhdpi/ic_sync.png diff --git a/app/src/main/res/drawable/Thumbs.db b/app/src/main/res/drawable/Thumbs.db Binary files differnew file mode 100644 index 0000000..07c6d5a --- /dev/null +++ b/app/src/main/res/drawable/Thumbs.db diff --git a/app/src/main/res/drawable/bai_banner.png b/app/src/main/res/drawable/bai_banner.png Binary files differnew file mode 100644 index 0000000..d919b2f --- /dev/null +++ b/app/src/main/res/drawable/bai_banner.png diff --git a/app/src/main/res/drawable/bai_logo.png b/app/src/main/res/drawable/bai_logo.png Binary files differnew file mode 100644 index 0000000..a1bf494 --- /dev/null +++ b/app/src/main/res/drawable/bai_logo.png diff --git a/app/src/main/res/drawable/bai_mona.png b/app/src/main/res/drawable/bai_mona.png Binary files differnew file mode 100644 index 0000000..b583466 --- /dev/null +++ b/app/src/main/res/drawable/bai_mona.png diff --git a/app/src/main/res/drawable/blank.png b/app/src/main/res/drawable/blank.png Binary files differnew file mode 100644 index 0000000..874fc75 --- /dev/null +++ b/app/src/main/res/drawable/blank.png diff --git a/app/src/main/res/drawable/side_nav_bar.xml b/app/src/main/res/drawable/side_nav_bar.xml new file mode 100644 index 0000000..73fe2d2 --- /dev/null +++ b/app/src/main/res/drawable/side_nav_bar.xml @@ -0,0 +1,8 @@ +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> + <gradient + android:angle="90" + android:endColor="@color/colorPrimaryDark" + android:startColor="@color/colorPrimary" + android:type="linear" /> +</shape>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..a61d8a6 --- /dev/null +++ b/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/drawer_layout" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + tools:openDrawer="start"> + + <include + layout="@layout/app_bar_main" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + <android.support.design.widget.NavigationView + android:id="@+id/nav_view" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_gravity="start" + android:fitsSystemWindows="true" + app:headerLayout="@layout/nav_header_main" + app:menu="@menu/activity_main_drawer" /> + +</android.support.v4.widget.DrawerLayout> diff --git a/app/src/main/res/layout/activity_response.xml b/app/src/main/res/layout/activity_response.xml new file mode 100644 index 0000000..19194d4 --- /dev/null +++ b/app/src/main/res/layout/activity_response.xml @@ -0,0 +1,134 @@ +<?xml version="1.0" encoding="utf-8"?> +<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="org.bienvenidoainternet.baiparser.ResponseActivity" + android:textAlignment="textEnd"> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/layoutForm"> + <EditText + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:inputType="textPersonName" + android:ems="10" + android:id="@+id/txtPosterName" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:hint="@string/txt_postername" /> + + <EditText + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:inputType="textEmailAddress" + android:ems="10" + android:id="@+id/txtEmail" + android:layout_below="@+id/txtPosterName" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:hint="@string/txt_email" /> + + <EditText + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:inputType="textMultiLine" + android:ems="10" + android:id="@+id/txtResponse" + android:hint="@string/txt_response" + android:layout_below="@+id/buttonBold" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:clickable="false" + android:capitalize="sentences" /> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/btn_send" + android:id="@+id/btnSend" + android:layout_alignWithParentIfMissing="false" + android:layout_below="@+id/txtResponse" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" /> + + <Button + style="?android:attr/buttonStyleSmall" + android:layout_width="32dp" + android:layout_height="32dp" + android:id="@+id/buttonBold" + android:background="@drawable/ic_action_font_bold" + android:layout_below="@+id/txtFilePath" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <Button + style="?android:attr/buttonStyleSmall" + android:layout_width="32dp" + android:layout_height="32dp" + android:background="@drawable/ic_action_font_italic" + android:id="@+id/buttonItalic" + android:layout_alignTop="@+id/buttonBold" + android:layout_toRightOf="@+id/buttonBold" + android:layout_toEndOf="@+id/buttonBold" /> + + <EditText + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/txtFilePath" + android:layout_below="@+id/txtEmail" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:enabled="false" + android:hint="Archivo " + android:layout_toLeftOf="@+id/btnSelectFiles" + android:layout_toStartOf="@+id/btnSelectFiles" /> + + <Button + style="?android:attr/buttonStyleSmall" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="..." + android:id="@+id/btnSelectFiles" + android:layout_below="@+id/txtEmail" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" /> + + </RelativeLayout> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_below="@+id/layoutForm" + android:layout_centerHorizontal="true" + android:id="@+id/layoutPostProcess"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="Diviendiendo por 0 ..." + android:id="@+id/txtPostingState" + android:layout_gravity="center_horizontal" /> + + <ProgressBar + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/barPosting" + android:layout_below="@+id/relativeLayout" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignRight="@+id/relativeLayout" + android:layout_alignEnd="@+id/relativeLayout" + android:layout_marginTop="3dp" /> + </LinearLayout> + +</RelativeLayout> diff --git a/app/src/main/res/layout/activity_updater.xml b/app/src/main/res/layout/activity_updater.xml new file mode 100644 index 0000000..b287293 --- /dev/null +++ b/app/src/main/res/layout/activity_updater.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<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="org.bienvenidoainternet.baiparser.UpdaterActivity"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="Versión actual:" + android:id="@+id/txtCurrentVersion" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceMedium" + android:text="Última versión:" + android:id="@+id/txtLastVersion" + android:layout_below="@+id/txtCurrentVersion" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <Button + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="Descargar última versión" + android:id="@+id/btnDownloadLastVersion" + android:layout_alignParentBottom="true" + android:layout_centerHorizontal="true" /> + + <ProgressBar + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/barUpdateProgress" + android:layout_above="@+id/btnDownloadLastVersion" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="" + android:id="@+id/txtChangelog" + android:layout_below="@+id/txtLastVersion" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginTop="5dp" + android:typeface="monospace" + android:layout_above="@+id/barUpdateProgress" + android:layout_marginBottom="5dp" /> +</RelativeLayout> diff --git a/app/src/main/res/layout/activity_viewer.xml b/app/src/main/res/layout/activity_viewer.xml new file mode 100644 index 0000000..b66e66b --- /dev/null +++ b/app/src/main/res/layout/activity_viewer.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<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" + tools:context="org.bienvenidoainternet.baiparser.ViewerActivity"> + + <com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView + android:id="@+id/imageView" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + <pl.droidsonroids.gif.GifImageView + android:id="@+id/gifView" + android:layout_width="match_parent" + android:layout_height="match_parent"/> + + <ProgressBar + style="?android:attr/progressBarStyleHorizontal" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/downloadProgressBar" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" /> +</RelativeLayout> diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml new file mode 100644 index 0000000..1055aa2 --- /dev/null +++ b/app/src/main/res/layout/app_bar_main.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true" + tools:context="org.bienvenidoainternet.baiparser.MainActivity"> + + <android.support.design.widget.AppBarLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:theme="@style/AppTheme.AppBarOverlay"> + + <android.support.v7.widget.Toolbar + android:id="@+id/toolbar" + android:layout_width="match_parent" + android:layout_height="?attr/actionBarSize" + android:background="?attr/colorPrimary" + app:popupTheme="@style/AppTheme.PopupOverlay" /> + + </android.support.design.widget.AppBarLayout> + + <include layout="@layout/content_main" /> + + <android.support.design.widget.FloatingActionButton + android:id="@+id/fab" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="bottom|end" + android:layout_margin="@dimen/fab_margin" + android:src="@drawable/ic_edit" + android:alpha="128" /> + +</android.support.design.widget.CoordinatorLayout> diff --git a/app/src/main/res/layout/boardthread_item.xml b/app/src/main/res/layout/boardthread_item.xml new file mode 100644 index 0000000..e969e5e --- /dev/null +++ b/app/src/main/res/layout/boardthread_item.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" android:layout_height="match_parent"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="thread_title" + android:id="@+id/threadlist_thread_title" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_marginTop="10dp" + android:layout_marginLeft="10dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="reply_count" + android:id="@+id/threadlist_replycount" + android:layout_below="@+id/threadlist_thread_title" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_marginLeft="10dp" + android:layout_marginBottom="10dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="last_reply" + android:id="@+id/threadlist_lastreply" + android:layout_alignTop="@+id/threadlist_replycount" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginRight="10dp" /> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml new file mode 100644 index 0000000..28cc377 --- /dev/null +++ b/app/src/main/res/layout/content_main.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + xmlns:tools="http://schemas.android.com/tools" + android:layout_width="match_parent" + android:layout_height="match_parent" + + app:layout_behavior="@string/appbar_scrolling_view_behavior" + tools:context="org.bienvenidoainternet.baiparser.MainActivity" + tools:showIn="@layout/app_bar_main"> + <android.support.v4.view.ViewPager + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="match_parent" /> + + +</RelativeLayout> + + <!--android:paddingBottom="@dimen/activity_vertical_margin"--> + <!--android:paddingLeft="@dimen/activity_horizontal_margin"--> + <!--android:paddingRight="@dimen/activity_horizontal_margin"--> + <!--android:paddingTop="@dimen/activity_vertical_margin"-->
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_fragment_recent.xml b/app/src/main/res/layout/fragment_fragment_recent.xml new file mode 100644 index 0000000..fa6e67c --- /dev/null +++ b/app/src/main/res/layout/fragment_fragment_recent.xml @@ -0,0 +1,17 @@ +<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" + tools:context="layout.fragmentRecent"> + + <!-- TODO: Update blank fragment layout --> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="New Text" + android:id="@+id/textView" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> +</RelativeLayout> diff --git a/app/src/main/res/layout/fragment_fragment_thread_list.xml b/app/src/main/res/layout/fragment_fragment_thread_list.xml new file mode 100644 index 0000000..af88df4 --- /dev/null +++ b/app/src/main/res/layout/fragment_fragment_thread_list.xml @@ -0,0 +1,61 @@ +<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:layout_alignParentTop="true" + android:layout_centerHorizontal="true"> + + <LinearLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/layoutThreadProcess" + android:visibility="gone"> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="Error: Unknow" + android:id="@+id/txtThreadError" + android:layout_margin="3dp" + android:textColor="#ff0000" + android:visibility="visible" + android:textAlignment="center" /> + + </LinearLayout> + + <RelativeLayout + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_below="@+id/layoutThreadProcess" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true"> + + <ProgressBar + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/progressBar" + android:layout_gravity="center_horizontal" + android:layout_weight="1" + android:indeterminate="true" + android:indeterminateBehavior="repeat" + android:indeterminateOnly="true" + android:layout_alignParentTop="true" + android:layout_centerHorizontal="true" + android:layout_marginTop="20dp" /> + + <ListView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:id="@+id/lvThreadList" + android:divider="#FF00FF" + android:layout_weight="1" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" /> + </RelativeLayout> + +</RelativeLayout> diff --git a/app/src/main/res/layout/nav_header_main.xml b/app/src/main/res/layout/nav_header_main.xml new file mode 100644 index 0000000..71f218d --- /dev/null +++ b/app/src/main/res/layout/nav_header_main.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="@dimen/nav_header_height" + android:background="@drawable/side_nav_bar" + android:theme="@style/ThemeOverlay.AppCompat.Dark"> + <!--android:gravity="bottom"--> + + <!--<ImageView--> + <!--android:layout_width="64dp"--> + <!--android:layout_height="64dp"--> + <!--android:paddingTop="@dimen/nav_header_vertical_spacing"--> + <!--android:src="@drawable/bai"--> + <!--android:id="@+id/imageView"--> + <!--android:layout_alignParentBottom="false"--> + <!--android:layout_centerHorizontal="true"--> + <!--android:layout_alignParentTop="true" />--> + + <ImageView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:src="@drawable/bai_banner" + android:background="#00000000" + android:layout_alignParentBottom="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:adjustViewBounds="true" /> +</RelativeLayout> diff --git a/app/src/main/res/layout/recentpost_item.xml b/app/src/main/res/layout/recentpost_item.xml new file mode 100644 index 0000000..852b317 --- /dev/null +++ b/app/src/main/res/layout/recentpost_item.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="utf-8"?> +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" android:layout_width="match_parent" + android:layout_height="match_parent"> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="rp_message" + android:id="@+id/rp_message" + android:layout_below="@+id/rp_title" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_marginLeft="5dp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="rp_title" + android:id="@+id/rp_title" + android:layout_alignParentTop="true" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_marginLeft="5dp" + android:layout_marginTop="5dp" + android:textSize="12sp" /> + + <TextView + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="rp_timediff" + android:id="@+id/rp_timediff" + android:textSize="12sp" + android:layout_below="@+id/rp_message" + android:layout_alignParentRight="true" + android:layout_alignParentEnd="true" + android:layout_marginRight="5dp" + android:layout_marginBottom="3dp" /> +</RelativeLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/thread_item.xml b/app/src/main/res/layout/thread_item.xml new file mode 100644 index 0000000..a4396b4 --- /dev/null +++ b/app/src/main/res/layout/thread_item.xml @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" android:layout_width="match_parent" + android:layout_height="match_parent"> + + <ImageView + android:layout_width="5dp" + android:layout_height="match_parent" + android:id="@+id/ivMargin" + android:scaleType="fitXY" + android:src="@color/defaultMarginColor" + android:layout_alignParentLeft="true" + android:layout_alignParentStart="true" + android:layout_alignParentTop="true" + android:layout_alignParentBottom="true" /> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_alignParentTop="true" + android:layout_toRightOf="@+id/ivMargin" + android:layout_toEndOf="@+id/ivMargin"> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="397 Nombre: VIPPEADOR : 11/03/16(vie)20:18:31" + android:id="@+id/lv_txtPoster" + android:textSize="10sp" + android:layout_below="@+id/lv_txtTitle" + android:layout_toRightOf="@+id/ivThumb" + android:layout_toEndOf="@+id/ivThumb" + android:layout_marginLeft="3dp" + android:layout_marginTop="3dp" + android:layout_marginRight="3dp" /> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="Cuerpo del post" + android:id="@+id/lv_txtBody" + android:layout_below="@+id/lv_txtFileInfo" + android:layout_toRightOf="@+id/ivThumb" + android:layout_toEndOf="@+id/ivThumb" + android:layout_marginLeft="3dp" + android:layout_marginTop="3dp" + android:layout_marginRight="3dp" /> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textAppearance="?android:attr/textAppearanceSmall" + android:text="Titulo" + android:id="@+id/lv_txtTitle" + android:textStyle="bold" + android:textSize="14sp" + android:layout_alignParentTop="true" + android:layout_toRightOf="@+id/ivThumb" + android:layout_toEndOf="@+id/ivThumb" + android:layout_marginLeft="3dp" + android:layout_marginTop="3dp" + android:layout_marginRight="3dp" />/> + <ImageView + android:layout_width="70dp" + android:layout_height="70dp" + android:id="@+id/ivThumb" + android:src="@drawable/blank" + android:layout_alignParentTop="true" + android:scaleType="centerCrop" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="123 Respuestas, 123 Imágenes" + android:id="@+id/lv_txtReplyCounter" + android:layout_below="@+id/lv_txtBody" + android:layout_toRightOf="@+id/ivThumb" + android:layout_toEndOf="@+id/ivThumb" + android:layout_marginLeft="3dp" + android:layout_marginTop="3dp" + android:layout_marginBottom="3dp" + android:layout_marginRight="3dp" /> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="New Text" + android:id="@+id/lv_txtFileInfo" + android:textSize="10sp" + android:layout_below="@+id/lv_txtPoster" + android:layout_toRightOf="@+id/ivThumb" + android:layout_toEndOf="@+id/ivThumb" + android:layout_marginLeft="3dp" + android:layout_marginRight="3dp" /> + </RelativeLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/menu/activity_main_drawer.xml b/app/src/main/res/menu/activity_main_drawer.xml new file mode 100644 index 0000000..5561ddb --- /dev/null +++ b/app/src/main/res/menu/activity_main_drawer.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item + android:id="@+id/nav_recent_post" + android:icon="@drawable/ic_sync" + android:title="Post recientes" /> +</menu> diff --git a/app/src/main/res/menu/main.xml b/app/src/main/res/menu/main.xml new file mode 100644 index 0000000..280b121 --- /dev/null +++ b/app/src/main/res/menu/main.xml @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item + android:id="@+id/action_to_top" + android:title="Ir al principio" + android:orderInCategory="100" + app:showAsAction="never"/> + <item + android:id="@+id/action_to_bot" + android:title="Ir al final" + android:orderInCategory="100" + app:showAsAction="never"/> + <item + android:id="@+id/action_refresh" + android:orderInCategory="300" + android:icon="@drawable/ic_refresh" + android:title="@string/action_settings" + app:showAsAction="always" /> + <item + android:id="@+id/action_settings" + android:orderInCategory="400" + android:title="@string/action_settings" + app:showAsAction="never" /> + <item + android:title="Buscar actualizaciones" + android:id="@+id/action_update" + android:orderInCategory="500" + app:showAsAction="never"/> + <item + android:id="@+id/action_exit" + android:orderInCategory="600" + android:title="@string/action_exit" + app:showAsAction="never" /> +</menu> diff --git a/app/src/main/res/menu/menu_reply.xml b/app/src/main/res/menu/menu_reply.xml new file mode 100644 index 0000000..d0dcaaa --- /dev/null +++ b/app/src/main/res/menu/menu_reply.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:android="http://schemas.android.com/apk/res/android"> + <item android:id="@+id/menu_reply" + android:title="@string/menu_reply"/> + <item android:id="@+id/menu_copy" + android:title="@string/menu_copy"/> + <item android:id="@+id/menu_savereply" + android:title="@string/menu_savereply"/> + <item android:id="@+id/menu_delpost" + android:title="@string/menu_delpost"/> + <item android:id="@+id/menu_delimage" + android:title="@string/menu_delimage"/> +</menu>
\ No newline at end of file diff --git a/app/src/main/res/menu/menu_viewer.xml b/app/src/main/res/menu/menu_viewer.xml new file mode 100644 index 0000000..31069eb --- /dev/null +++ b/app/src/main/res/menu/menu_viewer.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="utf-8"?> +<menu xmlns:tools="http://schemas.android.com/tools" + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto"> + <item android:title="Guardar" + android:id="@+id/menu_save_img" + android:orderInCategory="100" + android:icon="@drawable/ic_action_download" + app:showAsAction="always"/> +</menu>
\ No newline at end of file diff --git a/app/src/main/res/mipmap-hdpi/ic_launcher.png b/app/src/main/res/mipmap-hdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..0a0d553 --- /dev/null +++ b/app/src/main/res/mipmap-hdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-mdpi/ic_launcher.png b/app/src/main/res/mipmap-mdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..6a879da --- /dev/null +++ b/app/src/main/res/mipmap-mdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/app/src/main/res/mipmap-xhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..da08cb9 --- /dev/null +++ b/app/src/main/res/mipmap-xhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..b55a4af --- /dev/null +++ b/app/src/main/res/mipmap-xxhdpi/ic_launcher.png diff --git a/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png Binary files differnew file mode 100644 index 0000000..fa6a765 --- /dev/null +++ b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png diff --git a/app/src/main/res/values-v21/styles.xml b/app/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..251fb9f --- /dev/null +++ b/app/src/main/res/values-v21/styles.xml @@ -0,0 +1,9 @@ +<resources>> + + <style name="AppTheme.NoActionBar"> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + <item name="android:windowDrawsSystemBarBackgrounds">true</item> + <item name="android:statusBarColor">@android:color/transparent</item> + </style> +</resources> diff --git a/app/src/main/res/values-w820dp/dimens.xml b/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/app/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,6 @@ +<resources> + <!-- Example customization of dimensions originally defined in res/values/dimens.xml + (such as screen margins) for screens with more than 820dp of available width. This + would include 7" and 10" devices in landscape (~960dp and ~1280dp respectively). --> + <dimen name="activity_horizontal_margin">64dp</dimen> +</resources> diff --git a/app/src/main/res/values/attrs.xml b/app/src/main/res/values/attrs.xml new file mode 100644 index 0000000..ad73763 --- /dev/null +++ b/app/src/main/res/values/attrs.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <attr name="sageColor" format="reference"/> + <attr name="marginColor" format="reference"/> + <attr name="nameColor" format="reference"/> + <attr name="tripcodeColor" format="reference"/> + <attr name="isDarkTheme" format="boolean"/> +</resources>
\ No newline at end of file diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..5806545 --- /dev/null +++ b/app/src/main/res/values/colors.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="utf-8"?> +<resources> + <color name="colorPrimary">#3B6B94</color> + <color name="colorPrimaryDark">#1B3345</color> + <color name="colorAccent">#3B6B94</color> + <color name="transparentBackground">#CC000000</color> + + <color name="defaultSageColor">#0000FF</color> + <color name="defaultNameColor">#008000</color> + <color name="defaultMarginColor">#CCCCCC</color> + <color name="defaultTripcodeColor">#FF0000</color> + + <color name="nightBackground">#2F3D48</color> <!-- 1 --> + <color name="nightMarginColor">#58636c</color> <!-- 3 58636c--> + <color name="nightTextColor">#979ea3</color> <!-- 6 --> + <color name="nightLinkColor">#c0c4c8</color> <!-- 8 --> + <color name="nightNameColor">#2e5f96</color> + <color name="nightSageColor">#5f962e</color> + <color name="nightTripcodeColor">#962e5f</color> + + <color name="headlineBackground">#DDDDDD</color> <!-- 1 --> + <color name="headlineMarginColor">#EEEEEE</color> <!-- 3 58636c--> + <color name="headlineTextColor">#333333</color> <!-- 6 --> + <color name="headlineLinkColor">#FF6600</color> <!-- 8 --> + <color name="headlineNameColor">#004A99</color> + <color name="headlineSageColor">#FF6600</color> + <color name="headlineTripcodeColor">#d279ef</color> + + <color name="blackBackground">#282A2E</color> <!-- 1 --> + <color name="blackMarginColor">#1D1F21</color> <!-- 3 58636c--> + <color name="blackTextColor">#c5c8c6</color> <!-- 6 --> + <color name="blackLinkColor">#81a2be</color> <!-- 8 --> + <color name="blackNameColor">#c5c8c6</color> + <color name="blackSageColor">#81a2be</color> + <color name="blackTripcodeColor">#b294bb</color> +</resources> diff --git a/app/src/main/res/values/dimens.xml b/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..c2effc5 --- /dev/null +++ b/app/src/main/res/values/dimens.xml @@ -0,0 +1,9 @@ +<resources> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="nav_header_vertical_spacing">16dp</dimen> + <dimen name="nav_header_height">160dp</dimen> + <!-- Default screen margins, per the Android Design guidelines. --> + <dimen name="activity_horizontal_margin">16dp</dimen> + <dimen name="activity_vertical_margin">16dp</dimen> + <dimen name="fab_margin">16dp</dimen> +</resources> diff --git a/app/src/main/res/values/drawables.xml b/app/src/main/res/values/drawables.xml new file mode 100644 index 0000000..52c6a6c --- /dev/null +++ b/app/src/main/res/values/drawables.xml @@ -0,0 +1,8 @@ +<resources xmlns:android="http://schemas.android.com/apk/res/android"> + <item name="ic_menu_camera" type="drawable">@android:drawable/ic_menu_camera</item> + <item name="ic_menu_gallery" type="drawable">@android:drawable/ic_menu_gallery</item> + <item name="ic_menu_slideshow" type="drawable">@android:drawable/ic_menu_slideshow</item> + <item name="ic_menu_manage" type="drawable">@android:drawable/ic_menu_manage</item> + <item name="ic_menu_share" type="drawable">@android:drawable/ic_menu_share</item> + <item name="ic_menu_send" type="drawable">@android:drawable/ic_menu_send</item> +</resources> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..7fa3e34 --- /dev/null +++ b/app/src/main/res/values/strings.xml @@ -0,0 +1,76 @@ +<resources> + <string name="app_name">Bienvenido a Internet</string> + + <string name="navigation_drawer_open">Open navigation drawer</string> + <string name="navigation_drawer_close">Close navigation drawer</string> + + <string name="action_settings">Opciones</string> + <string name="action_exit">Salir</string> + <string name="action_threadlist">Lista de Hilos</string> + + <string name="txt_postername">Nombre</string> + <string name="txt_email">E-mail</string> + <string name="txt_response">Respuesta</string> + <string name="btn_send">Responder</string> + + <string name="menu_reply">Citar</string> + <string name="menu_copy">Copiar</string> + <string name="menu_savereply">Guardar</string> + <string name="menu_delpost">Eliminar respuesta</string> + <string name="menu_delimage">Eliminar imagen</string> + + + <string name="todo_pasando">Todo pasando en B.a.I</string> + + <string-array name="pref_themes"> + <item>psud0ch</item> + <item>Night</item> + <item>Photon</item> + <item>Tomorrow</item> + </string-array> + <string-array name="pref_themes_values"> + <item>1</item> + <item>2</item> + <item>3</item> + <item>4</item> + </string-array> + <string-array name="pref_repliescount"> + <item>Todas las respuestas</item> + <item>500 ultimas respuestas</item> + <item>250 ultimas respuestas</item> + <item>100 ultimas respuestas</item> + <item>50 ultimas respuestas</item> + </string-array> + <string-array name="pref_repliescount_values"> + <item>1000</item> + <item>500</item> + <item>250</item> + <item>100</item> + <item>50</item> + </string-array> + <string-array name="pref_catalog_replies"> + <item>Mostrar solo el post original</item> + <item>5 respuestas</item> + <item>10 respuestas</item> + </string-array> + <string-array name="pref_catalog_replies_values"> + <item>0</item> + <item>5</item> + <item>10</item> + </string-array> + <string-array name="pref_lastreplies_desc"> + <item>50 items</item> + <item>30 items</item> + <item>10 items</item> + <item>5 items</item> + </string-array> + <string-array name="pref_lastreplies_values"> + <item>50</item> + <item>30</item> + <item>10</item> + <item>5</item> + </string-array> + + <string name="title_activity_settings">Opciones</string> + +</resources> diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..5cadb6e --- /dev/null +++ b/app/src/main/res/values/styles.xml @@ -0,0 +1,88 @@ +<resources> + <style name="TransparentCompat" parent="@style/Theme.AppCompat.Light.DarkActionBar"> + <item name="android:windowNoTitle">true</item> + <item name="android:windowBackground">@color/transparentBackground</item> + <item name="android:colorBackgroundCacheHint">@null</item> + <item name="android:windowIsTranslucent">true</item> + <item name="android:windowAnimationStyle">@android:style/Animation</item> + </style> + <!-- Base application theme. --> + <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> + <item name="colorPrimary">@color/colorPrimary</item> + <item name="colorPrimaryDark">@color/colorPrimaryDark</item> + <item name="colorAccent">@color/colorAccent</item> + <item name="android:divider">@color/defaultMarginColor</item> + <item name="sageColor">@color/defaultSageColor</item> + <item name="nameColor">@color/defaultNameColor</item> + <item name="marginColor">@color/defaultMarginColor</item> + <item name="tripcodeColor">@color/defaultTripcodeColor</item> + <item name="isDarkTheme">false</item> + </style> + + <style name="AppTheme.Dark" parent="AppTheme.NoActionBar"> + <item name="android:textColor">@color/nightTextColor</item> + <item name="android:background">@color/nightBackground</item> + <item name="android:divider">@color/nightMarginColor</item> + <item name="android:textColorLink">@color/nightLinkColor</item> + <item name="sageColor">@color/nightSageColor</item> + <item name="nameColor">@color/nightNameColor</item> + <item name="marginColor">@color/nightMarginColor</item> + <item name="tripcodeColor">@color/nightTripcodeColor</item> + <item name="isDarkTheme">true</item> + </style> + + <style name="AppTheme.HeadLine.Activity" parent="AppTheme.NoActionBar"> + <item name="colorPrimary">@color/headlineTextColor</item> + <item name="colorPrimaryDark">@color/blackBackground</item> + <item name="colorAccent">@color/headlineLinkColor</item> + <item name="isDarkTheme">true</item> + </style> + + <style name="AppTheme.HeadLine" parent="AppTheme.NoActionBar"> + <item name="android:textColor">@color/headlineTextColor</item> + <item name="android:background">@color/headlineBackground</item> + <item name="android:divider">@color/headlineMarginColor</item> + <item name="android:textColorLink">@color/headlineLinkColor</item> + <item name="sageColor">@color/headlineSageColor</item> + <item name="nameColor">@color/headlineNameColor</item> + <item name="marginColor">@color/headlineMarginColor</item> + <item name="tripcodeColor">@color/headlineTripcodeColor</item> + <item name="colorPrimary">@color/headlineTextColor</item> + <item name="colorPrimaryDark">@color/headlineLinkColor</item> + <item name="colorAccent">@color/headlineLinkColor</item> + <item name="isDarkTheme">false</item> + </style> + + <style name="AppTheme.Black.Activity" parent="AppTheme.NoActionBar"> + <item name="colorPrimary">@color/blackBackground</item> + <item name="colorPrimaryDark">@color/blackMarginColor</item> + <item name="colorAccent">@color/blackMarginColor</item> + <item name="isDarkTheme">true</item> + </style> + + <style name="AppTheme.Black" parent="AppTheme.NoActionBar"> + <item name="android:textColor">@color/blackTextColor</item> + <item name="android:background">@color/blackBackground</item> + <item name="android:divider">@color/blackMarginColor</item> + <item name="android:textColorLink">@color/blackLinkColor</item> + <item name="sageColor">@color/blackSageColor</item> + <item name="nameColor">@color/blackNameColor</item> + <item name="marginColor">@color/blackMarginColor</item> + <item name="tripcodeColor">@color/blackTripcodeColor</item> + <item name="colorPrimary">@color/blackBackground</item> + <item name="colorPrimaryDark">@color/blackMarginColor</item> + <item name="colorAccent">@color/blackSageColor</item> + <item name="isDarkTheme">true</item> + </style> + + <style name="AppTheme.NoActionBar"> + <item name="windowActionBar">false</item> + <item name="windowNoTitle">true</item> + </style> + + <style name="AppTheme.AppBarOverlay" parent="ThemeOverlay.AppCompat.Dark.ActionBar" /> + + <style name="AppTheme.PopupOverlay" parent="ThemeOverlay.AppCompat.Light" /> + + +</resources> diff --git a/app/src/main/res/xml/preferences.xml b/app/src/main/res/xml/preferences.xml new file mode 100644 index 0000000..7f6d5b9 --- /dev/null +++ b/app/src/main/res/xml/preferences.xml @@ -0,0 +1,61 @@ +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"> + <PreferenceCategory + android:title="Apariencia"> + <ListPreference + android:title="Tema" + android:summary="Requiere un reinicio de la aplicación" + android:key="pref_theme" + android:defaultValue="1" + android:entries="@array/pref_themes" + android:entryValues="@array/pref_themes_values" /> + <SwitchPreference + android:title="Usar fuente Mona" + android:key="setting_monafont" + android:summary="No es compatible con todas las versiones de Android" + android:defaultValue="true" /> + <SwitchPreference + android:title="Usar Mona.tff solo en BSS" + android:key="setting_mona_bbsonly" + android:defaultValue="true"/> + </PreferenceCategory> + <PreferenceCategory + android:title="Comportamiento"> + <SwitchPreference + android:title="Descargar imágenes solo con Wi-Fi" + android:key="setting_downloadOnlyWithWifi" + android:defaultValue="true" /> + <SwitchPreference + android:title="Ir al final al abrir un hilo" + android:key="setting_scrollatnewthread" + android:defaultValue="false" /> + <ListPreference + android:title="Respuestas por tema" + android:key="pref_lastreplies" + android:summary="Cantidad de respuestas que serán cargadas en la vista de tema" + android:defaultValue="1000" + android:entries="@array/pref_repliescount" + android:entryValues="@array/pref_repliescount_values"/> + <ListPreference + android:title="Respuestas en catálogo" + android:key="pref_repliesperthread" + android:summary="Cantidad de respuestas que se muestran en el catálogo" + android:defaultValue="5" + android:entries="@array/pref_catalog_replies" + android:entryValues="@array/pref_catalog_replies_values"/> + <ListPreference + android:title="Post recientes" + android:summary="Cantidad de post a cargar" + android:key="pref_lastreplies_limit" + android:entries="@array/pref_lastreplies_desc" + android:entryValues="@array/pref_lastreplies_values" + android:defaultValue="30"/> + </PreferenceCategory> + <PreferenceCategory + android:title="Formulario de respuesta"> + <EditTextPreference + android:title="Contraseña" + android:summary="Usada para la eliminación de tus posts" + android:key="pref_password" /> + + </PreferenceCategory> +</PreferenceScreen>
\ No newline at end of file |