Coder Social home page Coder Social logo

justaway-for-android-original's Introduction

justaway-for-android-original's People

Contributors

s-aska avatar teshi04 avatar zaki50 avatar auroszx avatar oboenikui avatar

Stargazers

 avatar ys3669 avatar  avatar Rires_Magica avatar  avatar Shusuke Takahashi avatar  avatar Yoshinari Takaoka avatar  avatar amay077 avatar Takaya Funabiki avatar Russell Mo avatar S avatar hisaichi5518 avatar nonylene avatar

Watchers

 avatar  avatar  avatar  avatar Shusuke Takahashi avatar gb avatar

justaway-for-android-original's Issues

進捗報告

進捗報告

最近まとめて気になってた部分直したので連絡します(機能改修はやってないです)

minSdkVersionと14に

3.0系ほぼ無いのでAPIバージョンを14以上に設定しました、API14以上じゃないと動かない機能ではActionBar(PullToRefresh)位しか使ってないですが。

c8dcbb2

strings.xmlの命名規則

  • confirm_* ... ... 確認ダイアログのタイトル
  • title_* ... アクティビティタイトル
  • menu_* ... オプションメニュー項目名
  • context_menu_* ... コンテキストメニュー項目名
  • format_* ... SimpleDateFormatのフォーマット
  • label_* ... TextViewに固定で埋める文字列
  • button_* ... Buttonに固定で埋める文字列
  • progress_* ... ProgressDialogに固定で埋める文字列
  • toast_*_success ... 成功メッセージ(Toast)
  • toast_*_failure ... 失敗メッセージ(Toast)

80ac26d

Typeface.createFromAsset(getAssets(), "fontello.ttf") 置き換え

JustawayApplication.getFontello(); で取れるようにしました。

a2ffccd

MainActivityでしか使わないFragmentをfragment.mainパッケージに引っ越し

e4281ad

UpdateProfileImageFragment 引っ越し

c6b61e5

コンテキストメニューを出す処理を引っ越し

今後色々なコンテキストメニューを出し分けるのに今の作りだと都合がわるいので方法を変えました。

c963b2e

レイアウトエディタがちゃんと動くようにXMLにレイアウトエディタ用の属性を設定

動的に値を埋めるTextViewのtextなど空の状態でレイアウトエディタがあんまり役になっていなかったのでちゃんとしました。

tools:text="@teshi04" とかやるとレイアウトエディタ上でだけ表示される値が設定できます。

e8ce7a9

http://screen.chihaya-pm.org/afa5587d73c6c6c550694c4998d977b2.png

参考: http://vividcode.hatenablog.com/entry/android-app/tools-attributes

たくさん読み込めるようにする

現在20件ずつしか読み込んでいないためすぐにAPIの使用制限に引っかかってしまう、たくさん遡れるように取得件数をページ数に応じて変える

1ページ目 ... 100件

2ページ目以降 ... 200件

アプリケーションのインスタンの参照

JustawayApplicationのsApplicationをpublicにしてActivityなどからそのまま参照してもよいような気もしているけどどうなんだろうか。

  • JustawayApplication.getApplication()
  • JustawayApplication.sApplication

ユーザーリストから戻ると落ちる

原因は
https://github.com/chrisbanes/ActionBar-PullToRefresh/issues/186
で既に修正済みだったが mavenCentral 最新版の0.9.3には反映されていなかった。

developmentブランチをpluginsにディレクトリにそのまま突っ込み解決。

その後、以下2つの不具合を見つけ対応した。

  1. mMainPagerAdapter.notifyDataSetChanged(); が2回呼ばれている
  2. mMainPagerAdapter.notifyDataSetChanged(); 実行時FragmentのonCreateViewが呼ばれAPIが再実行されている

対応

  1. mMainPagerAdapter.notifyDataSetChanged(); を1回に
  2. mAdapterがすでにある場合そのまま使い、APIを叩かない

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.