android - Hiding a view inside Fragment -
I am using support.v4.app.Fragment and once I hide my loading view (progress bar) Attempting the network class (using the async task) to load all the data ends I made the progress bar stable and created a static function inside my piece that calls the network class PostExecute
Static work inside static:
public static zero Ndpuarn loading () {loadingView.setVisibility (see. GONE); GvLikes.setVisibility (View.VISIBLE); }
The network class calling the static function:
@Override Secure Zero PostXtech (Boolean result) {super.onPostExecute (results); ......... if (type.equals ("Postfragment")) {PostFragment.likesFinishedLoading (); } And if (type.equals ("post")) {Post.likesFinishedLoading (); }}
The type can be either postfragment (using fragment from the support library) or post (general section). The code has been implemented exactly in the postfragration and post. In any case, static work is executed, but only in the hidden view post (general section). Can anyone provide information? Thank you.
Comments
Post a Comment