【Java转Android】60(1)

package aystudio.nopi.materialdesign;

import android.content.Intent;

import android.graphics.Color;

import android.support.design.widget.CollapsingToolbarLayout;

import android.support.v7.app.ActionBar;

import android.support.v7.app.AppCompatActivity;

import android.os.Bundle;

import android.support.v7.widget.Toolbar;

import android.view.MenuItem;

import android.widget.ImageView;

import android.widget.TextView;

import com.bumptech.glide.Glide;

public class FruitActivity extends AppCompatActivity {

public static final String FRUIT_NAME = “fruit_name”;

public static final String FRUIT_IMAGE_ID = “fruit_image_id”;

@Override

protected void onCreate(Bundle savedInstanceState) {

super.onCreate(savedInstanceState);

setContentView(R.layout.activity_fruit);

Intent intent = getIntent();

String fruitName = intent.getStringExtra(FRUIT_NAME);

int fruitImageId = intent.getIntExtra(FRUIT_IMAGE_ID, 0);

Toolbar toolbar = findViewById(R.id.toolbar);

CollapsingToolbarLayout collapsingToolbar = findViewById(R.id.collapsing_toolbar);

ImageView fruitImageView = findViewById(R.id.fruit_image_view);

TextView fruitContentText = findViewById(R.id.fruit_content_text);

setSupportActionBar(toolbar);

ActionBar actionBar = getSupportActionBar();

if (actionBar != null) {

actionBar.setDisplayHomeAsUpEnabled(true);

}

collapsingToolbar.setTitle(fruitName);

Glide.with(this).load(fruitImageId).into(fruitImageView);

String fruitContent = generateFruitContent(fruitName);

fruitContentText.setText(fruitContent);

}

private String generateFruitContent(String fruitName) {

StringBuilder fruitContent = new StringBuilder();

for (int i = 0; i < 500; i++) {

fruitContent.append(fruitName);

}

return fruitContent.toString();

}

@Override

public boolean onOptionsItemSelected(MenuItem item) {

switch (item.getItemId()) {

case android.R.id.home:

finish();

return true;

}

return super.onOptionsItemSelected(item);

}

}

<?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”

android:layout_width=“match_parent”

android:layout_height=“match_parent”

android:fitsSystemWindows=“true”>

<android.support.design.widget.AppBarLayout

android:id=“@+id/appBar”

android:layout_width=“match_parent”

android:layout_height=“250dp”

android:fitsSystemWindows=“true”>

<android.support.design.widget.CollapsingToolbarLayout

android:id=“@+id/collapsing_toolbar”

android:layout_width=“match_parent”

android:layout_height=“match_parent”

android:theme=“@style/ThemeOverlay.AppCompat.Dark.ActionBar”

android:fitsSystemWindows=“true”

app:contentScrim=“?attr/colorPrimary”

app:layout_scrollFlags=“scroll|exitUntilCollapsed”>

<ImageView

android:id=“@+id/fruit_image_view”

android:layout_width=“match_parent”

android:layout_height=“match_parent”

android:scaleType=“centerCrop”

android:fitsSystemWindows=“true”

app:layout_collapseMode=“parallax” />

<android.support.v7.widget.Toolbar

android:id=“@+id/toolbar”

android:layout_width=“match_parent”

android:layout_height=“?attr/actionBarSize”

app:layout_collapseMode=“pin” />

</android.support.design.widget.CollapsingToolbarLayout>

</android.support.design.widget.AppBarLayout>

<android.support.v4.widget.NestedScrollView

android:layout_width=“match_parent”

android:layout_height=“match_parent”

app:layout_behavior=“@string/appbar_scrolling_view_behavior”>

自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。

深知大多数初中级Android工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则近万的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年Android移动开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。

img

img

img

img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Android开发知识点,真正体系化!

由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且会持续更新!

如果你觉得这些内容对你有帮助,可以扫码获取!!(备注:Android)

最后

我见过很多技术leader在面试的时候,遇到处于迷茫期的大龄程序员,比面试官年龄都大。这些人有一些共同特征:可能工作了5、6年,还是每天重复给业务部门写代码,工作内容的重复性比较高,没有什么技术含量的工作。问到这些人的职业规划时,他们也没有太多想法。

其实30岁到40岁是一个人职业发展的黄金阶段,一定要在业务范围内的扩张,技术广度和深度提升上有自己的计划,才有助于在职业发展上有持续的发展路径,而不至于停滞不前。

不断奔跑,你就知道学习的意义所在!

《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》,点击传送门即可获取!

技术广度和深度提升上有自己的计划,才有助于在职业发展上有持续的发展路径,而不至于停滞不前。

不断奔跑,你就知道学习的意义所在!

[外链图片转存中…(img-ut46wK8t-1712311438177)]

[外链图片转存中…(img-n589jE02-1712311438177)]

《Android学习笔记总结+移动架构视频+大厂面试真题+项目实战源码》,点击传送门即可获取!
  • 12
    点赞
  • 29
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
如果你想从JavaAndroid开发,以下是一些你需要掌握的技能和知识: 1. Java语言基础:Android开发主要使用Java语言,因此你需要掌握Java语言的基础知识,例如变量、数据类型、循环、条件语句、面向对象编程等。建议先学习Java基础课程和书籍。 2. Android SDK:Android软件开发工具包是Google提供的Android开发工具包,它包括了Android开发所需的所有库和工具。你需要了解Android SDK的使用和配置,包括Android Studio IDE、Gradle构建系统、Android虚拟设备管理器等。 3. Android框架:Android框架是Android操作系统的核心,它包括了Android应用程序所需的所有组件和API。你需要熟悉Android框架的各个组件,例如Activity、Service、BroadcastReceiver、Content Provider等。 4. XML布局:Android应用程序的界面是使用XML布局文件创建的。你需要了解XML布局文件的基础知识,例如控件、布局、属性等。 5. 数据库:Android应用程序通常需要使用数据库来存储和管理数据。你需要了解SQLite数据库的基础知识和使用方法。 6. 网络编程:Android应用程序通常需要使用网络连接来获取数据或与服务器进行通信。你需要了解基本的网络编程知识和使用方法。 7. 设备兼容性:Android系统在不同设备上的版本和配置可能会有所不同,因此你需要了解如何在不同的设备上开发和测试你的应用程序。 总之,JavaAndroid开发需要掌握许多知识和技能。建议先学习Java基础知识,然后深入学习Android开发相关的技能和知识。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值